
export default class BaseView{

    constructor(id){
      this.$el = $(`#${id}`);
      this.init();
    }
     
    init(){
        this.removeCss();
        //渲染css的
        this.renderCss();
        this.render();
        this.handle();
    }
    removeCss(){
        if($("link").length>0){
            $("link").remove();
          }
    }
    renderCss(){}
    render(){}
    handle(){}
}